package combat.coffeeshop.decorators;

import combat.coffeeshop.coffee.Coffee;

/**
 * 加巧克力装饰器
 *
 * @author Seon
 * @version 1.0
 * @since 2024-09-03
 */
public class ChocolateCoffeeDecorator extends CoffeeDecorator {

    public ChocolateCoffeeDecorator(Coffee coffee) {
        super(coffee);
    }

    @Override
    public double cost() {
        return super.cost() + 3.0;
    }

    @Override
    public String description() {
        return super.description() + ", Chocolate";
    }
}